namespace Universe.OneC.DomainModel
{
    public class MetaField
    {
        public string CastToName;
        public System.Data.DbType CastToType;
        public string DbName;
        public System.Data.DbType DbType;
        public int Index;
        public string Name;
        public readonly MetaProperty Property;
        public Universe.OneC.DomainModel.DataPurpose Purpose;

        public MetaField(MetaProperty property, string name)
        {
            this.Index = -1;
            this.Property = property;
            this.Name = name;
        }

        public MetaField(MetaProperty property, string name, Universe.OneC.DomainModel.DataPurpose purpose)
        {
            this.Index = -1;
            this.Property = property;
            this.Name = name;
            this.Purpose = purpose;
        }
    }
}